<%--
  Created by IntelliJ IDEA.
  User: 95184
  Date: 2024/9/14
  Time: 上午10:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String username = "";
    Cookie[] cookies = request.getCookies();
    for (Cookie cookie : cookies) {
        if (cookie.getName().equals("username")) {
            username = cookie.getValue();
        }
    }
%>
<%=username%>,欢迎你
<a href="/userOut">安全退出</a>
</body>
</html>
